package com.jar.exercise.设计模式.visitor模式.user;

import com.jar.exercise.设计模式.visitor模式.visitor.Visitor;
import lombok.Getter;

@Getter
public abstract class User {
    private String name;
    private String className;
    private String identity;

    public User(String name, String className, String identity) {
        this.name = name;
        this.className = className;
        this.identity = identity;
    }

    // 核心方法
    public abstract void accept(Visitor visitor);
}
